Skip to content

onActivityItem hook + UI#182

Open
smilingkylan wants to merge 7 commits intoMetaMask:mainfrom
smilingkylan:kylan/on-activity-item
Open

onActivityItem hook + UI#182
smilingkylan wants to merge 7 commits intoMetaMask:mainfrom
smilingkylan:kylan/on-activity-item

Conversation

@smilingkylan
Copy link

@smilingkylan smilingkylan commented Mar 9, 2026

This is essentially a duplicate of this PR: #179

I left MetaMask so I couldn't commit the markdown file to that branch anymore.

The goal of this SIP is to create a hook that fires when a user clicks on an activity item (past transaction) to view the transaction. It would offer similar functionality to the onTransaction and onSignature hooks, and be useful for post-transaction use cases (eg feedback about an address, display info / receipt for a purchased product, or other call-to-actions


Note

Low Risk
Documentation-only change that adds a new draft SIP; no runtime code or existing specs are modified, so risk is limited to potential spec/permission design issues before adoption.

Overview
Adds draft SIP-34 proposing a new Snap lifecycle hook, onActivityItem, to surface UI insights when a user opens an Activity (history) item.

Defines a new permission endowment:activity-insight (with optional allowActivityOrigin caveat) and specifies the handler args/return types including transaction metadata, status, optional receipt/hash, and origin.

Written by Cursor Bugbot for commit 942fa93. This will update automatically on new commits. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant